package topicDao;

import java.io.Serializable;

public class TopicEntity implements Serializable {
	public TopicEntity(String tname) {
		super();
		this.tname = tname;
	}

	private long tid;
	private String tname;

	public TopicEntity() {
	};

	public TopicEntity(long tid, String tname) {
		this.tid = tid;
		this.tname = tname;
	}

	public long getTid() {
		return tid;
	}

	public void setTid(long tid) {
		this.tid = tid;
	}

	public String getTname() {
		return tname;
	}

	public void setTname(String tname) {
		this.tname = tname;
	}

	@Override
	public String toString() {
		return "TopicEntity [tid=" + tid + ", tname=" + tname + "]";
	}

}
